package factoryMode.factory.factoryMethod.order;

import factoryMode.factory.factoryMethod.pizza.BJCheesePizza;
import factoryMode.factory.factoryMethod.pizza.BJPepperPizza;
import factoryMode.factory.factoryMethod.pizza.Pizza;

/**
 * @author： pang-yun
 * @date： 2021-10-21 20:16
 * 功能目的 ：用于
 */

public class BJOrderPizza extends PizzaOrder{
    @Override
    Pizza createPizza(String orderType) {
       Pizza pizza =null;
       if (orderType.equals("cheese")){
           pizza =new BJCheesePizza();
       }else if (orderType.equals("pepper")){
           pizza= new BJPepperPizza();
       }
       return pizza;
    }
}
